//
//  UILabel+Extension.swift
//  HMWeibo
//
//  Created by HuaMou.Chen on 15/11/27.
//  Copyright © 2015年 HuaMou.Chen. All rights reserved.
//

import UIKit

extension UILabel {
    convenience init(message: String, fontSize: CGFloat, color: UIColor) {
        self.init()
        text = message
        textColor = color
        font = UIFont.systemFontOfSize(fontSize)
        numberOfLines = 0
        textAlignment = NSTextAlignment.Center
        sizeToFit()
    }
}
